

//获取地图文档信息
function getMapDocInfo(docName) {
    return new Promise((resolve, reject) => {
        const docCatalog = new Zondy.Catalog.MapDoc({
            //或获取的地图文档的名称
            docName: docName,
        });
        docCatalog.getMapDocInfo(data => {
            resolve(data);
        });
    });
}

//获取底图图层信息
function getLayersInfo(docName) {
    return new Promise((resolve, reject) => {
        const docCatalog = new Zondy.Catalog.MapDoc({
            //或获取的地图文档的名称
            docName: docName,
        });
        docCatalog.getLayersInfo(data => {
            resolve(data);
        });
    });
}

export  {
    getLayersInfo,
    getMapDocInfo
};
